package com.dylan.shot.common.mapper;

import com.dylan.shot.common.model.Member;
import com.dylan.shot.common.util.InsertSelectiveUseGeneratedKeysProvider;
import com.dylan.shot.common.util.MyMapper;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;

public interface MemberMapper extends MyMapper<Member> {

    @Options(useGeneratedKeys = true, keyProperty = "memberId")
    @InsertProvider(type = InsertSelectiveUseGeneratedKeysProvider.class, method = "dynamicSQL")
    int insertSelectiveUseGeneratedKeys(Member record);
}